<%= error_messages_for 'vision' %>

<!--[form:vision]-->
<%
 red = ''
 red = 'red' unless @vision.public
%>
<%= text_field 'vision', 'name', :class => "pageheader"+red, :style => "background:url('/images/header-red-#{Localization.lang}.png') no-repeat left bottom;", :title => (_ "Title... press Tab to enter content.")%><br/>
<div style="text-align:center">
<%if @vision.new_record?%>
  <%= datetime_select 'vision', 'created_at'  %><br/>
  <%= file_column_field "vision", "image" %><br/>
<% else %>
  <%=image_tag url_for_file_column ("vision", "image")%>
<% end%>
<%= text_area 'vision', 'content', :class => "page", :style => "color:black;"%><br/>
 <label for="vision_public"><%=_ 'publicpage'%></label>
 <input type="checkbox" id="vision_public" name="vision[public]" <%="checked" if @vision.public%>/>
</div>
<!--[eoform:vision]-->
